<!doctype html>

<html>

<head>

    <meta charset="utf-8">

    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,initial-scale=1.0,width=device-width" />

    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">

    <title></title>
       <link rel="stylesheet" type="text/css" href="./css/api.css" />
</head>

<body id="wrap">



</body>

<script type="text/javascript" src="./script/api.js"></script>

<script type="text/javascript">
    apiready = function() {
      //打开广告
      var WelcomePage = api.require('welcomePage');
      //  alert(WelcomePage)
      if(WelcomePage == undefined ){
          OpenNew()
      }else{
      WelcomePage.openWelcomePage({
          isFullscreen: true,                            //是否全屏(全屏不显示状态栏)  默认false
          AnimationType: 'ZoomOutPage',      //动画类型   'Default默认', 'DepthPage深入浅出', 'Cube立方体', 'Rotate旋转','Accordion左右折叠',                               //'InRightUp右上角进入' , 'InRightDown右下角进入', 'ZoomOutPage淡入淡出'
          imgs: ['widget://image/2yellow.png', 'widget://image/qidong.png', 'widget://image/yellow.png'],
          setting: {
              isShow: true,                                                // 是否显示页面点 默认不显示
              SelectedImg: 'widget://image/2yellow.png',
              NotSelectedImg: 'widget://image/qidong.png',
              ImgSize: 30,                                                 // 图片size
              ImgSpacing: 30                                               // 图片之间的间隔
          }
      }, function(ret, err) {
          if (ret.result == true) {
              // alert(JSON.stringify(ret));
                OpenNew()
          } else {
              // alert(JSON.stringify(err));
          }
      });

        OpenNew()
        // OpenAd()
      }
   };
   // 打开新页面
   function OpenNew(){
           api.openWin({
               name: 'main',
               url: './html/main.html',
               vScrollBarEnabled: false,
              hScrollBarEnabled: false,
              //苹果iso滑动返回
              slidBackEnabled: false
           });
    }



</script>

</html>
